Receive Only ASCII communication driver

 

Receive Only ASCII communication driver is the driver to receive the continuously sending data from controller.

 

1. Read settings

 

<Figure 1> is read setting example of Receive Only ASCII communication driver.

<Figure 1> Read setting example of Receive Only ASCII communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively according to setting of controller.

In protocol option part, you can set the following: one packet length of receiving data( 1 ~ 256, default : 10 ), readed data start position at the packet( 0 ~ 255, default : 2 ), weather to use readed data start character( 0 = don't use, 1 = use, default : 0 ), readed data start character code ( 0 ~ 255, default : 67 ), whether to ignore Timeout error( 0 = don't ignore, 1 = ignore, default = 0 ), weather to use readed data end character( 0 = don't use, 1 = use, default : 0 ), readed data end character code ( 0 ~ 255, default : 3 ), whether to use user defined data saving( 0 = don't use, 1 = use, default = 0 ), whether to readed user defined code is ASCII( 0 = don't ASCII, 1 = ASCII, default = 0 ), whether to readed user defined code is hex-decimal( 0 = decimal, 1 = hex-decimal, default = 1 ), whether to use read request user defined code( 0 = don't use, 1 = use, default = 0 ), whether to use received data sending to controller( 0 = don't use, 1 = use, default = 0 ). Each argument  is a comma-delimited.

 

Receive Only ASCII communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) STATION – don't care.

2) Read command – don't care.

3) Read start address – don't care.

4) Save Start Address for Communication Server – readed data saving start address of communication server.

5) Read Size – fixed to 1.

 

Read schedule example)

READ,    1,   1,     0,    10,  1,

 

Receive Only ASCII

communication driver store the same data in WORD, DWORD, FLOAT, STRING( when don't using 'user defined data save' option ) memory, but the data format are different.

If you click the icon  in protocol option part, you can see the dialog box such as <Figure 2>. you can also set protocol option by using this part. 

<Figure 2> Example of Receive Only ASCII communication driver¡¯s protocol setting dialog

Also, you can set one packet length of receiving data, readed data start position at the packet, weather to use readed data start character, readed data start character code, whether to ignore Timeout error, weather to use readed data end character, readed data end character code, whether to use user defined code, whether to readed user defined code is ASCII, whether to readed user defined code is hex-decimal, whether to use read request user defined code,  whether to use received data sending to controller at <Figure 2>.

 

Note) If user defined data saving 'ini' file don't exist, don't use 'user defined read request packet even if use 'User Defined Data Save'.

Also, user defined read request 'ini' file don't exist, don't use 'user defined read data save even if use 'User Defined Read Request Packet'.

Please don't set 'Ignore Read Time' when using 'User Defined Read Request Packet'.

 

<Table 1> is setting method of ini file for user defined data saving.

<Figure 3> is setting example of ini file for user defined data saving.

Filename

Setting method of ini file

work folder\SCAN\CH_INFO.ini
or
\SCAN\CH_INFO%03d.ini
(%03d = 0 ~ 255 port number)

1) Input at 1st line by text format.

2) Each argument  is separated by a comma-delimited ( , ).

3) Maximum read information = 256.

4) B = Byte, W = Word Hi Lo order, W2 = Word Lo Hi order, D = Double Word,

F = Float, S = String data.

5) Behind number of 'S' is length of string.    example) S10  : length of string = 10

( when using 'Read Value is Ascii Code', string data save also to Float data after conversion )

<Table 1> Setting method of ini file for user defined sata saving
<Figure 3> Setting example of ini file for user defined data saving

<Table 2> is setting method of ini file for user defined read request.

<Figure 4> is setting example of ini file for user defined read request.

Filename

Setting method of ini file

work folder\SCAN\SEND_INFO%03d.ini

(%03d = 000 ~ 255 port number)

1) Input at 1st line by text format.

2) Each argument  is separated by a comma-delimited ( , ).

3) Maximum read information = 256.

4) Input 0 ~ 255 ASCII code value by decimal unit.

example) 02, 65, 66, 03,

<Table 2> Setting method of ini file for user defined read request
<Figure 4> Setting example of ini file for user defined read request
 
2. Write settings

Receive Only ASCII communication driver don't support 'write settings'.